<?php

namespace Plugin\MultiSeller\Http\Controllers\Shop;

use Beike\Shop\Http\Controllers\Controller;
use Beike\Shop\Services\CartService;
use Illuminate\Contracts\View\View;

class CartController extends Controller
{
    /**
     * @return View
     */
    public function index(): View
    {
        $data          = CartService::reloadData();
        $data          = [
            'data' => $data,
        ];

        $data = hook_filter('cart.index.data', $data);

        return view('MultiSeller::shop.cart', $data);
    }
}
